includeTargets << grailsScript("Init")
includeTargets << new File ( "scripts/StopSimpleSolr.groovy" )

target(main: "The description of the script goes here!") {
	depends("stopsimplesolr")
	Thread.sleep(1000)
	
	def pluginBasedir = "${SimpleSolrPluginDir}"
	def solrHome = "${grails.util.BuildSettingsHolder.getSettings().projectWorkDir}/solr-home"
	def indexDir = "${solrHome}/solr/data"
	Ant.delete( dir: indexDir)
	println "Deleted ${indexDir}"
}

setDefaultTarget(main)
